package com.eam.service.impl;

import java.util.List;

import com.eam.bean.Position;
import com.eam.dao.PositionDAO;
import com.eam.service.PositionService;

public class PositionServiceImpl implements PositionService {

	private PositionDAO pdao;
	

	public void add(Position transientInstance) {
		pdao.save(transientInstance);
	}

	public List query() {
		List<Position> list = pdao.findAll();
		return list;
	}

	public PositionDAO getPdao() {
		return pdao;
	}

	public void setPdao(PositionDAO pdao) {
		this.pdao = pdao;
	}

}
